using System;
using System.Collections.Generic;

namespace GitServer.ApplicationCore.Models
{
    public class User:BaseEntity
    {
        public User()
        {
            this.AuthorizationLogs = new List<AuthorizationLog>();
            this.SshKeys = new List<SshKey>();
            this.UserTeamRoles = new List<UserTeamRole>();
        }
        public string Name { get; set; }
        public string Nickname { get; set; }
        public string Email { get; set; }
        public string Password { get; set; }
        public string Description { get; set; }
        public string WebSite { get; set; }
        public bool IsSystemAdministrator { get; set; }
        public DateTime CreationDate { get; set; }
        public virtual ICollection<AuthorizationLog> AuthorizationLogs { get; set; }
        public virtual ICollection<SshKey> SshKeys { get; set; }
        public virtual ICollection<UserTeamRole> UserTeamRoles { get; set; }
    }
}
